
import 'package:p_location/user/obj/check_code_summary.dart';

class CheckCodeInfo {
    CheckCodeSummary data;
    int code;
    Object detailMessage;
    String errMsg;
    Object extra;
    int length;
    String msg;

    CheckCodeInfo({this.data, this.code, this.detailMessage, this.errMsg, this.extra, this.length, this.msg});

    factory CheckCodeInfo.fromJson(Map<String, dynamic> json) {
        return CheckCodeInfo(
            data: json['data'] != null ? CheckCodeSummary.fromJson(json['data']) : null,
            code: json['code'], 
//            detailMessage: json['detailMessage'] != null ? Object.fromJson(json['detailMessage']) : null,
            errMsg: json['errMsg'], 
//            extra: json['extra'] != null ? Object.fromJson(json['extra']) : null,
            length: json['length'], 
            msg: json['msg'], 
        );
    }

//    Map<String, dynamic> toJson() {
//        final Map<String, dynamic> data = new Map<String, dynamic>();
//        data['code'] = this.code;
//        data['errMsg'] = this.errMsg;
//        data['length'] = this.length;
//        data['msg'] = this.msg;
//        if (this.data != null) {
//            data['`data`'] = this.data.toJson();
//        }
//        if (this.detailMessage != null) {
//            data['detailMessage'] = this.detailMessage.toJson();
//        }
//        if (this.extra != null) {
//            data['extra'] = this.extra.toJson();
//        }
//        return data;
//    }
}